random_resample_paired Subroutine

public subroutine random_resample_paired(x, xn)

Resamples paired observations with replacement. The input stores each pair as adjacent values: [x1, y1, x2, y2, ...].

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

An even-length array of interleaved paired observations.

real(kind=real64), intent(out), dimension(size(x)) :: xn

The resampled pairs in the same interleaved layout.